package com.cskaoyan.bean.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @Auther: Yang Yi-zhou
 * @Date: 2022/9/9 11:06
 * @Description:
 */
@NoArgsConstructor
@Data
public class GetPermissionsRoleVO implements Serializable {

    private static final long serialVersionUID = 2980640778502295874L;
    private List<SystemPermissionsDTO> systemPermissions;
    private List<String> assignedPermissions;

    @NoArgsConstructor
    @Data
    public static class SystemPermissionsDTO implements Serializable{
        private static final long serialVersionUID = -2605563765176492899L;
        private String id;
        private String label;
        private List<ChildrenDTO> children;

        @NoArgsConstructor
        @Data
        public static class ChildrenDTO implements Serializable{
            private static final long serialVersionUID = -5260438642238648408L;
            private String id;
            private String label;
            private List<ChildrenDTO1> children;

            @NoArgsConstructor
            @Data
            public static class ChildrenDTO1 implements Serializable{
                private static final long serialVersionUID = -8905171081608696648L;
                private String id;
                private String label;
                private String api;
            }
        }
    }
}
